package com.macro.mall.service;


import com.macro.mall.dto.BmsTourismProjectParam;
import com.macro.mall.model.BmsTourismProject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface BmsTourismProjectService {

    /**
     * 分页获取文旅项目
     */
    List<BmsTourismProject> getList(BmsTourismProjectParam bmsTourismProjectParam);

    /**
     * 获取文旅项目
     */
    List<BmsTourismProject> findAllList();

    /**
     * 添加文旅项目
     */
    @Transactional
    int create(BmsTourismProjectParam bmsTourismProjectParam);

    /**
     * 修改文旅项目
     */
    int update(BmsTourismProjectParam bmsTourismProjectParam);

    /**
     * 获取单个文旅项目详情
     */
    BmsTourismProject getItem(Long id);

    /**
     * 批量删除文旅项目
     */
    @Transactional
    int delete(List<Long> ids);

}
